result=false

grep -q "\-w /etc/sudoers -p wa -k scope
-w /etc/sudoers.d/ -p wa -k scope" /etc/audit/rules.d/audit.rules && grep -q "\-w /etc/sudoers -p wa -k scope
-w /etc/sudoers.d/ -p wa -k scope" /etc/audit/audit.rules && result=true

if [ "$result" = true ]; then
    echo "pass"
else
    echo "fail"
fi
